package cn.edu.hqu.tkserver.modules.tk.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.hqu.tkserver.modules.tk.dao.TicketDao;
import cn.edu.hqu.tkserver.modules.tk.entity.TicketEntity;
import cn.edu.hqu.tkserver.modules.tk.service.TicketService;

import java.util.List;
import java.util.Map;



@Service("ticketService")
public class TicketServiceImpl implements TicketService {
	@Autowired
	private TicketDao ticketDao;
	
	@Override
	public TicketEntity queryObject(Integer id){
		return ticketDao.queryObject(id);
	}
	
	@Override
	public List<TicketEntity> queryList(Map<String, Object> map){
		return ticketDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return ticketDao.queryTotal(map);
	}
	
	@Override
	public void save(TicketEntity ticket){
		ticketDao.save(ticket);
	}
	
	@Override
	public void update(TicketEntity ticket){
		ticketDao.update(ticket);
	}
	
	@Override
	public void delete(Integer id){
		ticketDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		ticketDao.deleteBatch(ids);
	}
	
}
